from django.urls import path
from rest_framework.routers import SimpleRouter
from goods.views import skus, Sku, skusall, Sku_categories

router = SimpleRouter()
# # 注册资源 /api/user/sku/ /api/user/sku/[id]/
router.register('sku', Sku)
router.register('categories', Sku_categories)


urlpatterns=[

path('categories/<int:id>/skus/', skus),
path('categories/null/skus/', skusall),

]
urlpatterns += router.urls